#include <iostream>
#include "point.h"

int Point::GetX()
{
    return this->x;
}

int Point::GetY()
{
    return this->y;
}

void Point::SetX(int num)
{
    this->x = num;
}

void Point::SetY(int num)
{
    y = num;
}

void Point::MoveTo(int x, int y)
{
    this->SetX(x);
    this->SetY(y);
}

void Point::Display()
{
    std::cout << "x=" << this->x
         << ", "
         << "y=" << this->y
         << std::endl;
}
